Having fun while learning about and pivoting into the world of DFIR.
by ogmini
Continuing from yesterday’s post, we are looking at how to tell if someone is connected via SSH. I did not have time to look at SSH Tunnels. Please refer back to the main post for full details as this post will only talk about the tests and results.
While an SSH connection is active lets see what is visible. Unlike Debian, the Windows alternative to the who
and w
command shows us no useful information. By looking at the “Users” tab in Task Manager, we can see all users accounts that are currently logged into the computer. In the screenshot below, we only see the “User” that we logged into the server Windows machine and no “User” account for the SSH connection.
Running netstat
shows us the active SSH connection on port 22.
If we look at the “Processes” tab in Task Manager, there is an sshd process and when there is an active SSH connection it will have 4 child processes as in the first screenshot below. One of the sshd processes is the parent one and so for every active SSH connection there will be:
The second screenshot below shows what happens when there are two active SSH connections.
A nicer hierarchical view is given by user Process Explorer.